import request from '@/utiles/request'
// 获取线路分页数据
export function getLinePageApi (data) {
  return request({
    url: '/transportLine/page',
    method: 'POST',
    data
  })
}
// 获取车次详情
export function getLineDetailApi (id) {
  return request({
    url: `/transportLine/trips/${id}`,
    method: 'GET'
  })
}

// 获取车次列表
export function getLineListApi (params) {
  return request({
    url: '/transportLine/trips',
    method: 'GET',
    params
  })
}

// 获取线路详情
export function getLineaDetailApi (id, params) {
  return request({
    url: `/transportLine/${id}`,
    params
  })
}
